module.exports = {
  port: 8090,
  title: 'UI 组件库',
  description: '山能数科UI组件库',
  themeConfig: {
    nav: [
      { text: '主页', link: '/' },
      { text: '组件', link: '/doc/' },
      {
        text: '更新日志',
        ariaLabel: '更新日志',
        items: [
          { text: 'v1.0.0', link: '/doc/version/v1.0.0' },
          { text: 'v1.0.1', link: '/doc/version/v1.0.1' }
        ]
      }
    ],
    // 禁用标题链接
    // sidebarDepth: 0,
    // sidebar: [
    //   ['/doc/', '安装'],
    //   ['/doc/quickstart', '快速上手'],
    //   ['/doc/button', 'Button']
    // ],
    sidebar: {
      '/doc/': [
        {
          title: '指南',
          collapsable: false,
          sidebarDepth: 0,
          children: [
            ['guide/installation', '安装'],
            ['guide/quickstart', '快速上手']
          ]
        },
        {
          title: '组件',
          collapsable: false,
          sidebarDepth: 0,
          children: [['components/button', 'Button']]
        }
      ]
    }
  },
  locales: {
    '/': {
      // 默认语言为中文（demo-container 插件会读取这个值）
      lang: 'zh-CN'
    }
  },
  // demo-container: 创建交互式的代码演示，并提供更丰富的展示效果
  plugins: ['demo-container']
}
